import React from 'react'

import Constants from '../../common/Constants'
import CommonRequestDataAction from '../common/CommonRequestDataAction'
// 获取求偶条件
export default class HeartLoveGetMatchingAction extends CommonRequestDataAction {
  constructor(props) {
    super(props)

    this.moduleType = Constants.MODULE_TYPE.HEART
    this.name = 'HeartLoveGetMatchingAction'
  }

  finish(data, isSucceed, response) {
    console.log('HeartLoveGetMatchingAction-', data, isSucceed, response)
    if (isSucceed) {
      this.caller.setState({
        viewStatus: response.status,
        matchingData: data
      })
    }
  }
}
